package com.stox.services.data.downloader.model;

import java.util.Date;
import java.util.List;

import com.stox.shared.core.model.Bar;
import com.stox.shared.core.model.enumeration.BarSpan;
import com.stox.shared.core.model.intf.Callback;

public interface DataDownloader<T>{

	public void download(T entity, BarSpan barSpan, Date start,
			Date end, Callback<List<Bar>, Void> callback);
	
	public void cancel();
	
}
